package org.graduation.note.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.IService;
import org.graduation.model.common.note.Note;
import org.graduation.model.common.user.User;

import java.util.List;

public interface NoteService extends IService<Note> {

    /**
     * 分页查询
     *
     * @param page
     * @param uid
     * @return
     */
    IPage<Note> pageList(IPage<Note> page, Integer uid);

    /**
     * 更新笔记
     *
     * @param note
     * @return
     */
    boolean updateNote(Note note);

    /**
     * 获取用户所有需要提醒的备忘录
     * @param user
     * @return
     */
    List<Note> alarmNote(User user);

}
